<#assign instance="${domain?substring(0,1)?lower_case}${domain?substring(1)}"/>

package ${classPath};

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat; 

import javax.validation.constraints.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.annotation.Excel.ColumnType;
import com.ruoyi.common.annotation.Excel.Type;
import com.ruoyi.common.annotation.Excels;
import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.common.xss.Xss;

@Data
@ToString
@ApiModel(value = "${classComment}对象新增")
public class ${domain}AddCommand {
 <#list fieldList as field>
  

<#compress>
  /** ${field.comment} */
  <#if field.name!="id"><#list field.annotations as annotation> <#--内层循环-->
  <#if !annotation?starts_with("@Co")&&!annotation?starts_with("@E")&&!annotation?starts_with("@X")>
    ${annotation}
  </#if>
</#list>
</#if>
  @ApiModelProperty(value = "${field.comment}")
  private ${field.type} ${field.name};
</#compress>
</#list>

	public ${domain} convert() {
		return BeanUtils.copyPropertiesIgnoreNull(this, ${domain}.class);
	}

}
